#ifndef UI_BRUIT_H
#define UI_BRUIT_H

#include <QtGui/QDialog>
#include <QtGui/QDialogButtonBox>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QGridLayout>
#include <QtGui/QDial>
#include <QtGui/QLabel>
#include <QtGui/QWidget>
#include <QtGui/QSpinBox>

#include "Filter/bruitpoivreetsel.h"

QT_BEGIN_NAMESPACE

class Ui_Bruit
{
public:
    QGridLayout         *layoutBruit;
    QGridLayout         *layoutDial;
    QGridLayout         *layoutSpinBox;
    QDialogButtonBox    *buttonBox;
    QWidget             *dialWidget;
    QWidget             *spinBoxWidget;
    QLabel              *label;
    QDial               *dialButton;
    QSpinBox            *spinBox;



    void setupUi(QDialog *Bruit)
    {
        if (Bruit->objectName().isEmpty())
            Bruit->setObjectName(QString::fromUtf8("Bruit"));

        layoutBruit = new QGridLayout(Bruit);

        dialWidget = new QWidget();
        layoutDial = new QGridLayout(dialWidget);
        dialButton = new QDial();
        dialButton->setMinimum(0);
        dialButton->setMaximum(100);
        layoutDial->addWidget(dialButton,1,1,1,1,Qt::AlignVCenter | Qt::AlignHCenter);

        spinBoxWidget = new QWidget();
        layoutSpinBox = new QGridLayout(spinBoxWidget);
        spinBox = new QSpinBox();
        spinBox->setMinimum(0);
        spinBox->setMaximum(100);
        layoutSpinBox->addWidget(spinBox,1,1,1,1,Qt::AlignVCenter | Qt::AlignHCenter);


        label = new QLabel();
        label->setText("Choisissez le niveau du bruit (%)");
        label->setAlignment(Qt::AlignCenter);

        buttonBox = new QDialogButtonBox(Bruit);
        buttonBox->setOrientation(Qt::Horizontal);
        buttonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);

        layoutBruit->addWidget(label,0,0,1,2,Qt::AlignTop | Qt::AlignHCenter);
        layoutBruit->addWidget(dialWidget,1,0,1,1,Qt::AlignTop | Qt::AlignHCenter);
        layoutBruit->addWidget(spinBoxWidget, 1,1,1,1,Qt::AlignVCenter | Qt::AlignHCenter);
        layoutBruit->addWidget(buttonBox, 2,1,1,1,Qt::AlignTop | Qt::AlignRight);

        QObject::connect(buttonBox,SIGNAL(rejected()), Bruit, SLOT(close()));
        QObject::connect(buttonBox,SIGNAL(accepted()), Bruit, SLOT(accept()));
        QObject::connect(dialButton,SIGNAL(valueChanged(int)),spinBox,SLOT(setValue(int)));
        QObject::connect(spinBox,SIGNAL(valueChanged(int)),dialButton,SLOT(setValue(int)));

    } // setupUi

    void retranslateUi(QDialog *Bruit)
    {
        Bruit->setWindowTitle(QApplication::translate("PImage", "Bruit Poivre et Sel", 0, QApplication::UnicodeUTF8));

       Q_UNUSED(Bruit);
    } // retranslateUi
};

namespace Ui_BruitPS {
    class Bruit: public Ui_Bruit {};
} // namespace Ui

QT_END_NAMESPACE



#endif // UI_BRUIT_H
